package com.smart.web;

public class ClientContextHolder {
	private static ThreadLocal<String> deviceTypeHolder = new ThreadLocal<String>();  
	private static ThreadLocal<String> ipHolder = new ThreadLocal<String>(); 
	
	
	public static void setDeviceType(String type){
		deviceTypeHolder.set(type);
	}
	
	public static String getDeviceType(){
		return deviceTypeHolder.get();
	}
	
	public static void setIp(String ip) {
		ipHolder.set(ip);
	}
	
	public static String getIp() {
		return ipHolder.get();
	}
	
	public static void clean(){
		deviceTypeHolder.remove();
		ipHolder.remove();
	}
	
	
}
